package com.zg.scf.job;

import com.zg.scf.service.ImgConfigService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-31
 */

@Component
public class ImgJob {

    @Resource
    private  ImgConfigService imgConfigService;
    @Scheduled(cron = "0 0 1 * * ?") // 每天0点执行
    public void imgConfigJob() {
        imgConfigService.compute();
    }
}
